home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-07 | 712 b | 31 lines | [TEXT/DWat] |
- % Plot another backbody curve
- % This is a helper script for the "Plot_Blackbody_Figure" script
-
- % X values are logs. Need to convert them to use the
- % 'Planck' script which expects Hz, not Log Hz.
- rpn <x 10^x >x
-
- % Calculate the planck function at temperature K
- planck &1
-
- % Restore the x array log values (for plotting)
- rpn <x log >x
-
- % Can't take the log of zero so sick something in for all zeros
- rpn <y 0 = 1E-2000 * <y + log >y
-
- % Draw heavy lines
- pensize 1
- plotline
- pensize 0.25
-
- % Add the label and arrow pointing to each curve
- moveto x(40) y(40) 12 + T log +
- drawlabel 4 \T K
- moveto x(40) y(40) 12 + T log +
- drawto x(45) y(40) 12 + T log +
- scale scale 0.75 *
- drawarrowto x(70) y(70)
- scale scale 0.75 /
-
-